package cate.common.table.activity.restrictcall.row;

import cate.common.table.EExcelNoteField;
import cate.common.table.EExcelRowClass;
import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("召唤目标奖励")
public class RestrictCallRewardRow extends ERow {
    @NoteField("召唤次数")
    public int times;

    @NoteField(value = "奖励")
    public String rewardStr;

    @NoteField(value = "分组")
    public int group;


    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID");
        this.times = xrw.getInteger("召唤次数", 9999999);
        this.rewardStr = xrw.getString("奖励", "");
        this.group = xrw.getInteger("分组", 1);
    }

    public int getTimes() {
        return times;
    }
}
